<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<title><?php echo C('WEB_SITE_TITLE');?></title>
<link href="/M/Public/static/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/docs.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/onethink.css" rel="stylesheet">
<link href="/M/Public/static/bootstrap/css/common.css" rel="stylesheet">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="/M/Public/static/bootstrap/js/html5shiv.js"></script>
<![endif]-->

<!--[if lt IE 9]>
<script type="text/javascript" src="/M/Public/static/jquery-1.10.2.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script type="text/javascript" src="/M/Public/static/jquery-1.8.2.js"></script>
<!-- styles needed by jScrollPane -->
<link type="text/css" href="/M/Public/static/scroll/jquery.jscrollpane.css" rel="stylesheet" />

<!-- the mousewheel plugin - optional to provide mousewheel support -->
<script type="text/javascript" src="/M/Public/static/scroll/jquery.mousewheel.js"></script>

<!-- the jScrollPane script -->
<script type="text/javascript" src="/M/Public/static/scroll/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="/M/Public/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/M/Public/static/jquery.contextmenu.r2.js" type="text/javascript"></script>
<script src="/M/Public/static/artdialog/artDialog.js" type="text/javascript"></script>
<script src="/M/Public/static/jquery.contextmenu.r2.js" type="text/javascript"></script>
<script type="text/javascript" src="/M/Public/static/bootstrap/js/common.js"></script>
<script src="/M/Public/static/artdialog/iframeTools.source.js" type="text/javascript"></script>
<link href="/M/Public/static/artdialog/skins/default.css" rel="stylesheet">
<?php if(is_login()): ?><script src="http://192.168.1.42:3000/socket.io/socket.io.js"></script>
<script src='http://192.168.1.42:3000/javascripts/common.js'></script>
<script>
	$(function(){
		socket.send('<?php echo get_username();?>');
	})
</script>
<?php else: endif; ?>
<!--<![endif]-->
<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->
<?php echo hook('pageHeader');?>

</head>
<body>
	<!-- 头部 -->
	<!-- 导航条
================================================== -->

<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="<?php echo U('index/index');?>">OA-让工作更加简单</a>
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <?php $__NAV__ = D('Channel')->lists(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><li>
                            <a href="<?php echo (get_nav_url($nav["url"])); ?>"><?php echo ($nav["title"]); ?></a>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="nav-collapse collapse pull-right">
                <?php if(is_login()): ?><ul class="nav" style="margin-right:0">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-left:0;padding-right:0"><?php echo get_username();?> <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo U('User/profile');?>">修改密码</a></li>
                                <li><a href="<?php echo U('User/logout');?>">退出</a></li>
                            </ul>
                        </li>
                    </ul>
                <?php else: ?>
                    <ul class="nav" style="margin-right:0">
                        <li>
                            <!-- <a href="<?php echo U('User/login');?>">登录</a> -->
							<a href="javascript:windowLogin('/M/index.php?s=/Home/user/login');">登录</a>
                        </li>
                        <li>
                            <a href="<?php echo U('User/register');?>" style="padding-left:0;padding-right:0">注册</a>
                        </li>
                        <li>
							<a href="javascript:;" class="glyphicon glyphicon-envelope mail" style="font-size:18px;" data-html=true data-content="<span class='label label-info'>admin</span><span class='label label-info'>minglei1202</span>" data-placement="bottom" data-toggle="popover" data-original-title="未读邮件"></a>
                        </li>
                    </ul><?php endif; ?>
            </div>
        </div>
    </div>
</div>

	<!-- /头部 -->
	
	<!-- 主体 -->
	
<div id="main-container" class_bak="container" class="desktop">
    
	<div class="fileContiner fileList_icon">
		<div title="我的电脑" target-url="<?php echo U('Worklog/worklog');?>" class="file filediv systemBox menudesktop" id="computer" number="0" style="position: absolute; left: 10px; top: 10px;">
			<div system="computer" filetype="system" class="computer ico"></div>
			<div class="titleBox" id="我的电脑"><span class="title">我的电脑</span></div>
		</div>
		<div title="回收站" target-url="<?php echo U('Worklog/postlog');?>" class="file fileframe systemBox menudesktop" number="1" id="recycle" style="position: absolute; left: 10px; top: 120px;">
			<div system="recycle" filetype="system" class="filelog ico"></div>
			<div class="titleBox" id="回收站"><span class="title">日志</span></div>
		</div>
		<div title="设置" target-url="<?php echo U('Manage/index');?>" class="file filediv systemBox menudesktop" number="2" id="setting" style="position: absolute; left: 10px; top: 230px;">
			<div system="setting" filetype="system" class="setting ico"></div>
			<div class="titleBox" id="设置"><span class="title">设置</span></div>
		</div>
		<div title="浏览器" target-url="<?php echo U('User/login');?>" class="file filediv systemBox menudesktop" number="3" id="internet" style="position: absolute; left: 10px; top: 340px;">
			<div system="internet" filetype="system" class="internet ico"></div>
			<div class="titleBox" id="浏览器"><span class="title">浏览器</span></div>
		</div>
		<div title="视频" target-url="<?php echo U('User/login');?>" class="file filediv folderBox menufolder" number="4" id="folder" style="position: absolute; left: 10px; top: 450px;">
			<div filetype="folder" class="folder ico"></div>
			<div class="titleBox" id="视频"><span title="双击重命名" class="title">视频</span></div>
		</div>
		<div title="聊天" target-url="<?php echo (THEME_PATH); ?>Window/chat.html" class="file filediv fileBox menufile" id="oexe" number="5" style="position: absolute; left: 100px; top: 10px;">
			<div filetype="oexe" class="oexe ico"></div>
			<div class="titleBox" id="QQ音乐.oexe"><span title="双击重命名" class="title">QQ音乐.oexe</span></div>
		</div>
		<div style="clear:both"></div>
		<div id="selContainer" style="left: 6px; top: 5px; width: 495px; height: 534px; display: none;"></div>
	</div>
    <!--右键主菜单的源-->
	<div class="contextMenu" id="myMenu1">
		<ul class="context-menu-list context-menu-root contextMenu">
			<li class="context-menu-item" id="fresh">
				<i class="font-icon icon-refresh"></i>
				<span>刷新(<span class="context-menu-accesskey">E</span>)</span>
			</li>
			<li class="context-menu-item">
				<i class="font-icon icon-sort"></i>
				<span>排序方式(<span class="context-menu-accesskey">O</span>)</span>
			</li>
			<li class="context-menu-item context-menu-separator not-selectable"></li>
			<li class="context-menu-item" id="uploaded">
				<i class="font-icon icon-upload"></i>
				<span>上传(<span class="context-menu-accesskey">U</span>)</span>
			</li>
			<li class="context-menu-item disabled">
				<i class="font-icon icon-paste"></i>
				<span>粘贴(<span class="context-menu-accesskey">P</span>)</span>
			</li>
			<li class="context-menu-item disabled">
				<i class="font-icon icon-eye"></i>
				<span>查看剪贴板(<span class="context-menu-accesskey">B</span>)</span>
			</li>
			<li class="context-menu-item context-menu-separator not-selectable"></li>
			<li class="context-menu-item">
				<i class="font-icon icon-folder-close-alt"></i>
				<span>新建文件夹(<span class="context-menu-accesskey">F</span>)</span>
			</li>
			<li class="context-menu-item">
				<i class="font-icon icon-file-alt"></i>
				<span>新建文本文件(<span class="context-menu-accesskey">T</span>)</span>
			</li>
			<li class="context-menu-item context-menu-separator not-selectable"></li>
			<li class="context-menu-item">
				<i class="font-icon icon-info"></i>
				<span>属性(<span class="context-menu-accesskey">R</span>)</span>
			</li>
			<li class="context-menu-item" id="fullscreen">
				<i class="font-icon icon-fullscreen"></i>
				<span>全屏/退出全屏(F)</span>
			</li>
			<li class="context-menu-item">
				<i class="font-icon icon-picture"></i>
				<span>更改壁纸(<span class="context-menu-accesskey">W</span>)</span>
			</li>
			<li class="context-menu-item">
				<i class="font-icon icon-cogs"></i>
				<span>系统设置(<span class="context-menu-accesskey">S</span>)</span>
			</li>
		</ul>
	</div>
	<!--右键任务栏菜单的源-->
	<div class="contextMenu" id="taskmenu">
		<ul class="context-menu-list context-menu-root contextMenu">
			<li class="context-menu-item" id="task-open">
				<i class="font-icon icon-folder-open"></i>
				<span>打开(<span class="context-menu-accesskey">E</span>)</span>
			</li>
			<li class="context-menu-item" id="task-close">
				<i class="font-icon  icon-folder-close"></i>
				<span>关闭(<span class="context-menu-accesskey">O</span>)</span>
			</li>
		</ul>
	</div>
	<!--右键窗口顶部菜单源-->
	<div class="contextMenu" id="topwindowmenu">
		<ul class="context-menu-list context-menu-root contextMenu">
			<li class="context-menu-item" id="topwindow-min">
				<i class="font-icon icon-folder-open"></i>
				<span>最小化(<span class="context-menu-accesskey">E</span>)</span>
			</li>
			<li class="context-menu-item" id="topwindow-close">
				<i class="font-icon  icon-folder-close"></i>
				<span>关闭(<span class="context-menu-accesskey">O</span>)</span>
			</li>
		</ul>
	</div>
	<div class="task_tab">
		<div id="tasks" class="tasks" style="width: 50px;">任务栏</div> 
		<div style="width: 40px;float:right"><i class="chat-icon chat icon" data-url="<?php echo U('/Home/User/chat');?>"></i></div>
		<div style="width: 30px;float:right;position:relative;">
			<a class="msg-icon icon" data-html=true data-content="<span class='label label-info'>admin</span><span class='label label-info'>minglei1202</span>" data-placement="top" data-toggle="popover" data-original-title="未读信息"></a>
			<span class="unreadDot" style="">0</span>
		</div>
	</div>

</div>
<script type="text/javascript">
    $(function(){
        $(window).resize(function(){
            $("#main-container").css("min-height", $(window).height() - 343);
        }).resize();
    })
</script>
	<!-- /主体 -->
</body>
</html>